import axios from "axios"

//获取商品列表
export const getAllFoods = async (data) => {
    let res = await axios({
        method:"get",
        url:"/api/supplierFoods",
        params:{
            curPage:data.curPage,
            eachPage:data.eachPage,
            name:data.name,
            type:data.type,
            sort:data.sort
        }
    })
    return res.data;
}
export const getsupolierById = async (data) => {
   return  axios({
        url: "/api/admin/getsupolierById",
        method: "get",
        params: {
          supplierId:data
        }
      })
}